#!/usr/bin/env node

const program = require('commander')
const { initFn, cssFn, prinConfig } = require('./actions')


program.version(require('./package.json').version)

program
	.command('init')
	.description('初始化配置文件 init [文件地址]')
	.action(initFn)
	
program
	.command('css')
	.description('生成css样式')
	.action(cssFn)

program
	.command('print [aa]')
	.description('打印配置文件')
	.action((aa)=>{
		console.log(!!aa);
		prinConfig()
	})
	

program.parse(process.argv)